<?php
class GameSettingAction extends CommonAction{
	
	function update() {
            $name=$this->getActionName();
            $model = D ('game_setting');
            
		if (false ===$data = $model->create ()) {
			$this->error ( $model->getError () );
		}
                //print_r($data);
                
            //$list=$model->add ($data);
            $list=$model->save ($data);
            
            //exit;
            if ($list!==false) { 
                $this->saveLog(1,$list);
                $this->success (L('EDIT_SUCCESS'));
            } else {
			//失败提示
		$this->saveLog(0,$list);
		$this->error (L('EDIT_FAILED'));
		}
                
        }
        
}

?>